<?php
/**
 * page-header.php, template header
 * 
 * Include by index.php
 *  
 * ================================================================
 * @package     msys-file-manager
 * @category    template
 * ================================================================
 * 
 * @author      Hamdiya <hamdiya.dev@gmail.com>
 * @copyright   Copyright (c) 2009, Hamdiya
 * @license     http://www.gnu.org/licenses/gpl.html GNU General Public License 2
 * @link        http://dir-list.sourceforge.net/
 * 
 * @author      nhnoah <nhnoah+msys@gmail.com> 
 * @copyright   Copyright (c) 2011, Nuar H. Noah (nhnoah) 
 * @license     http://www.gnu.org/licenses/lgpl.html GNU Lesser GPL
 * @link        http://msys-file-manager.googlecode.com/
 * 
 * ================================================================
 * SVN revision information:
 * 
 * @version $Revision: 23 $:
 * @author  $Author: nhnoah $:
 * @date    $Date: 2011-11-22 08:04:09 +0000 (Tue, 22 Nov 2011) $:
 * ================================================================
 * 
 * @since   0.3.1 (Date: 2011-11-21 23:07:02 +0800 (Mon, 21 Nov 2011)
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Matrix Secretarial - <?php echo get_header_title($url_folder); ?></title>
<!-- stylesheets -->
<link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_color_scheme_link();?>" media="all" />

<!-- javascripts -->
<script type="text/javascript">
    var msys = { hash: '<?php echo $_GET['folder']; ?>', self: <?php echo json_encode($_SERVER['PHP_SELF']);?>, base: 'matrix-sys\/'};
    msys.lang = { update_available:<?php _l('update_available',1);?>, noupdate_available:<?php _l('no_update_found',1);?>};    
</script>
<?php
 _js_script('msys.js');    
 //enable the javascript required for thumbnail view 
 if($view_mode == 0) _js_script('thumbs.js');     

/**
 * Fixes issue #1
 * 
 * Change the validation routine and encapsulate isset
 * @see _is()
 * @author nhadi.noh <nhadi.noh+msys@gmail.com>
 * @uses _is() to capsulate isset
 * @uses _js_script create html scripts tag
 * @global bool $_SESSION['logged_in']
 */     
if( _is($_SESSION['logged_in'])  ) _js_script('update.js');   
?>
</head>